<template>
  <div class="container">
    <div class="content">
      <h1>404 - Page Not Found</h1>
      <p>Oops! The page you’re looking for doesn’t exist.</p>
      <button @click="goBack">Go Back to Home</button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goBack() {
      this.$router.push('/login');
    }
  }
};
</script>

<style>
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background:
      linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)), /* 增加渐变叠加 */
      url("../../assets/images/404.png") no-repeat center center;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.content {
  background: rgba(0, 0, 0, 0.7); /* 半透明背景 */
  padding: 30px 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

h1 {
  font-size: 3rem;
  margin: 0 0 10px;
}

p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  background-color: #ff6b6b;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #ff4c4c;
}
</style>

